﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddtoCart.ascx.cs" Inherits="AddtoCart" %>
<link rel="stylesheet" type="text/css" href="Style/style.css" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
    <tr>
       
        <td bgcolor="#3b5998" style="width: 685px; font-size:large" align="center" id="textmenu">Giỏ hàng</td>
        
    </tr>
    <tr>
        <td id="bordermenu" align="center"  colspan="3" style="height: 15px;padding: 10px 5px 5px 5px;" valign="middle">
            
            <table border="0" cellpadding="0" cellspacing="0" style="width: 680px">
                <tr>
                    <td style="width: 100px" align="center">
            
            <asp:GridView ID="gvwCart" runat="server" AutoGenerateColumns="False" Width="680px" BackColor="White" BorderColor="OrangeRed" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" OnRowDataBound="gvwCart_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvwCart_PageIndexChanging" PageSize="4" DataKeyNames="ProductID">
                <Columns>
                    <asp:ImageField DataImageUrlField="ProductImage" HeaderText="Ảnh">
                        <ControlStyle Width="100px" />
                        <ItemStyle Width="100px" />
                    </asp:ImageField>
                    <asp:BoundField DataField="ProductName" HeaderText="T&#234;n sản phẩm">
                        <HeaderStyle Width="150px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ProductPrice" HeaderText="Đơn gi&#225;" FooterText="$">
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Số lượng">
                        <ItemTemplate>
                            &nbsp;
                            <asp:TextBox ID="txtProductQuantity" runat="server" Width="50px" ForeColor="#A62800"></asp:TextBox>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Th&#224;nh tiền">
                        <ItemTemplate>
                            &nbsp;<asp:Label ID="Label3" runat="server" Text="$"></asp:Label>
                            <asp:Label ID="lblTotal" runat="server"></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="X&#243;a">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkRemove" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle Width="50px" Wrap="True" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <asp:CheckBox ID="ckbDelete" runat="server" />
                </EmptyDataTemplate>
                <RowStyle BackColor="AliceBlue" ForeColor="#A62800" />
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <PagerStyle BackColor="AliceBlue" ForeColor="BlueViolet" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="OrangeRed" BorderColor="#c9c8c8" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
                        <br />
                        <asp:Label ID="lblResult" runat="server" Font-Bold="True" Font-Size="X-Large" ForeColor="#A62800" Width="675px"></asp:Label></td>
                </tr>
                <tr>
                    <td align="center" style="width: 100%;padding: 5px 5px 5px 5px;">
                        &nbsp;<asp:Label ID="Label1" runat="server" ForeColor="#A62800" Text="Tổng tiền:" Width="152px"></asp:Label>
                        <asp:Label ID="Label2" runat="server" ForeColor="#A62800" Text="$"></asp:Label>&nbsp;
                        <asp:Label ID="lblTotalMerchandise" runat="server" ForeColor="#A62800"></asp:Label>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center" style="width: 100%; height: 24px;padding: 5px 5px 5px 5px;">
            <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" OnClick="btnUpdate_Click" 
                            BackColor="#4b6cb1"  Font-Bold="false" ForeColor="White" Width="80px" 
                            BorderStyle="None" />  <asp:Button ID="btnContinue" runat="server" 
                            Text="Tiếp tục" OnClick="btnContinue_Click"  BackColor="#4b6cb1"  
                            Font-Bold="false" ForeColor="White" Width="80px" BorderStyle="None" />
                        <asp:Button ID="btnCheckOut" runat="server" Text="Check Out" 
                            OnClick="btnCheckOut_Click" BackColor="#4b6cb1"  Font-Bold="false" 
                            ForeColor="White" Width="80px" BorderStyle="None" />
                        </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
